package com.info.zhiduoduo.admin.model.formbean.invoice;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.info.zhiduoduo.common.utils.DateUtil;

import java.util.Date;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class EditCrowdsourceApplyInvoiceDateFormBean {

	@ApiModelProperty("发票id")
	private int invoiceid;

	@NotNull(message = "日期不能为null")
	@JsonFormat(pattern = DateUtil.FORMAT_STYLE_10, timezone = DateUtil.TIME_ZONE_CHINA)
	@ApiModelProperty("申请开票日期, 字符串日期格式: yyyy-MM")
	private Date applyInvoiceDate;
}
